package com.zuo.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zuo.mall.common.api.CommonPage;
import com.zuo.mall.dto.PmsProductCategoryWithChildrenItem;
import com.zuo.mall.entity.PmsProductCategory;

import java.util.List;

public interface PmsProductCategoryService extends IService<PmsProductCategory> {
    /**
     * 层级显示获取商品分类
     */
    List<PmsProductCategoryWithChildrenItem> listWithChildren();

    CommonPage<PmsProductCategory> getList(Long parentId, Integer pageSize, Integer pageNum);
}
